package org.future.task.redis.cluster;

import java.io.Serializable;
import java.util.Map;

public class CEntry implements Serializable {

    public CEntry(CType ctype) {
        this.ctype = ctype;
    }

    private CType ctype;

    private String bigKey;

    private String key;

    private String val;

    private int ttl = -1;

    private Map<String, String> fullData;

    public String getBigKey() {
        return bigKey;
    }

    public CEntry setBigKey(String bigKey) {
        this.bigKey = bigKey;
        return this;
    }

    public String getKey() {
        return key;
    }

    public CEntry setKey(String key) {
        this.key = key;
        return this;
    }

    public String getVal() {
        return val;
    }

    public CEntry setVal(String val) {
        this.val = val;
        return this;
    }

    public int getTtl() {
        return ttl;
    }

    public CEntry setTtl(int ttl) {
        this.ttl = ttl;
        return this;
    }

    public Map<String, String> getFullData() {
        return fullData;
    }

    public CEntry setFullData(Map<String, String> fullData) {
        this.fullData = fullData;
        return this;
    }

    public CType getCtype() {
        return ctype;
    }

    public void setCtype(CType ctype) {
        this.ctype = ctype;
    }
}
